package com.study.mybatis.service.impl;

import com.study.mybatis.dao.UserDao;
import com.study.mybatis.dao.impl.UserDaoImpl;
import com.study.mybatis.pojo.User;
import com.study.mybatis.service.UserService;

public class UserServiceImpl implements UserService {

    private UserDao userDao = new UserDaoImpl();

    @Override
    public User getUserById(int id){

        User user = userDao.getUserById(6);
        return user;

    }

    @Override
    public void insertUser(User user){
        userDao.insertUser(user);
    }
}
